/**
 * @Description: 该类是用来模拟枚举类的，用于Result的code
 * @author Fengli
 * @date 4/29/19
*/
class CodeEnum {
  constructor (value, msg) {
    this.value = value
    this.msg = msg
  }
}

/* 在这里添加想要加入的枚举选项 */
CodeEnum.SUCCESS = new CodeEnum(200, '成功')
CodeEnum.FAIL = new CodeEnum(500, '失败')

// 冻结该类，防止修改
Object.freeze(CodeEnum)

export {CodeEnum}
